#include "ModeSelection.h"
#include "Arduino.h"

char* Mode_char[] = {"Front:","      Behind:","       Left:","       Right:"};

void ModeSele(uint8_t choice)
{
  uint8_t Mode[4];
  
  Mode[0] = (choice & 0b1000) >>3;     
  Mode[1] = (choice & 0b0100) >>2;
  Mode[2] = (choice & 0b0010) >>1;
  Mode[3] = (choice & 0b0001);

  for(int i=0;i<4;i++)
  {
  if(Mode[i])
  {
    Serial.print(*(Mode_char+i));
    Serial.print(analogRead(A3+i)); 
  }
  }
  Serial.println();
}
